﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MainPage.Master"
	CodeBehind="ReportUT517.aspx.vb" Inherits="RWN.ReportUT517" UICulture="th-TH" Culture="th-TH" %>

<%@ Register Assembly="NumericTextBox" Namespace="NumericTextBoxControl" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Src="ucPopupOfficer.ascx" TagName="ucPopupOfficer" TagPrefix="uc1" %>
<%@ MasterType VirtualPath="~/MainPage.Master" %>
<%@ Register Assembly="Sarayut.ControlLibrary" Namespace="Sarayut.ControlLibrary"
	TagPrefix="cc2" %>
<%@ Register src="ucCalendar.ascx" tagname="ucCalendar" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<asp:ScriptManager ID="ScriptManager1" runat="server" 
		EnableScriptGlobalization="True">
	</asp:ScriptManager>
	<div>
		รายงานการทำรายการธุรกรรมผ่านระบบ</div>
	<div>
		<hr />
	</div>
	<div>
		<table>
			<tr>
				<td>
					ตั้งแต่วันที่:
				</td>
				<td>
					<uc2:ucCalendar ID="fromDate" runat="server" ValidationGroup="valid" />
				</td>
				<td>
					ถึงวันที่:
				</td>
				<td>
					<uc2:ucCalendar ID="toDate" runat="server" ValidationGroup="valid" />
				</td>
			</tr>
			<tr>
				<td>
					ประเภทไฟล์:
				</td>
				<td>
					<asp:DropDownList ID="ddlFileType" runat="server">
					<asp:ListItem Value="">-- All File Type --</asp:ListItem>
						<asp:ListItem>IVR XML File</asp:ListItem>
						<asp:ListItem>IVR FTP File</asp:ListItem>
						<asp:ListItem>SBM FTP File</asp:ListItem>
					</asp:DropDownList>
				</td>
				<td>
					สถานะของรายการ :
				</td>
				<td>
					<asp:DropDownList ID="ddlTranStatus" runat="server">
						<asp:ListItem Value="">-- All Transaction Status --</asp:ListItem>
						<asp:ListItem>SUCCESS</asp:ListItem>
						<asp:ListItem>ERROR</asp:ListItem>
					</asp:DropDownList>
				</td>
			</tr>
			<tr>
				<td>
					เบอร์โทร success</td>
				<td>
					<asp:TextBox ID="txtTel" runat="server"></asp:TextBox>
				</td>
				<td>
					&nbsp;</td>
				<td>
					&nbsp;</td>
			</tr>
			<tr>
				<td colspan="4">
					<asp:Button ID="btnSearch" runat="server" Text="ค้นหา" 
						ValidationGroup="valid" />
					&nbsp;<asp:Button ID="btnReset" runat="server" Text="ตั้งค่าใหม่" />
					&nbsp;<asp:Button ID="btnExcel" runat="server" Text="Excel File" />
				</td>
			</tr>
		</table>
	</div>
	<div>
		<asp:GridView ID="gvList" runat="server" AllowPaging="True" 
			AutoGenerateColumns="False" PageSize="20" 
			Width="100%">
			<AlternatingRowStyle BackColor="White" />
			<Columns>
				<asp:TemplateField HeaderText="ลำดับ">
					<ItemTemplate>
						<asp:Label ID="Label1" runat="server" Text="<%# Container.DataItemIndex+1 %>"></asp:Label>
					</ItemTemplate>
				</asp:TemplateField>
				<asp:BoundField DataField="FILE_DATE" HeaderText="วันที่ทำรายการ" 
					DataFormatString="{0:dd/MM/yyyy}" />
				<asp:BoundField DataField="MOBILE_NO" HeaderText="เบอร์ success" />
				<asp:BoundField DataField="FILE_TYPE" HeaderText="ประเภทไฟล์" />
				<asp:BoundField DataField="FILE_STATUS" HeaderText="สถานะ" />
				<asp:BoundField DataField="FILE_FUNCTION" HeaderText="Function">
				<HeaderStyle HorizontalAlign="Left" />
				<ItemStyle HorizontalAlign="Left" />
				</asp:BoundField>
				<asp:BoundField DataField="FILE_DESC" HeaderText="Description">
				<HeaderStyle HorizontalAlign="Left" />
				<ItemStyle HorizontalAlign="Left" />
				</asp:BoundField>
				<asp:BoundField DataField="FILE_CHANNEL" HeaderText="Channel">
				<HeaderStyle HorizontalAlign="Center" />
				</asp:BoundField>
				<asp:BoundField DataField="FILE_CHANNEL_REFERENCE" 
					HeaderText="Channel Reference">
				<HeaderStyle HorizontalAlign="Left" />
				<ItemStyle HorizontalAlign="Left" />
				</asp:BoundField>
			</Columns>
			<RowStyle HorizontalAlign="Center" Height="20px"  />
            <HeaderStyle BackColor="White" Height="30px" />
		    <PagerStyle BackColor="White" />
		</asp:GridView>
	</div>

	<!-- ไว้เป็น Template สำหรับออก excel -->
	</asp:Content>
